-- GENERATED SPELL FOR [Commander Eligor Dawnbringer] --


function spell0_29177(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(37979,pUnit)
pUnit:RegisterEvent('Sorts_29177', 2500, 1)
end

function Sorts_29177(pUnit, Event)
local choix_sorts_29177 = math.random(0, 0)
if choix_sorts_29177 == 0 then
pUnit:RegisterEvent('spell0_29177', 1, 1)
end
end

function mob29177_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29177', math.random(1500, 3000), 1)
end

function mob29177_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29177_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29177_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29177, 1, 'mob29177_Action')
RegisterUnitEvent(29177, 2, 'mob29177_Leave')
RegisterUnitEvent(29177, 3, 'mob29177_Kill')
RegisterUnitEvent(29177, 4, 'mob29177_Die')
